import {
	get,
	post,
	put
} from "./request";
import config from "../common/config";

// 根据code获取openid
export const getopenidBycode = (params) => post("/wx/user/getopenidBycode", params);
// 根据openid登录
export const wxLogin = (params) => post("/wx/user/login", params);
// 账号密码登录
export const loginApi = (params) => post("/loginWx", params);
// 根据token获取用户信息
export const getInfo = (params) => get("/getInfo", params);
// 修改用户信息
// export const updateInfo = (params) => put("​/system/user", params);
export const updateInfo = (params) => post("​/applet/api/editUser", params);
// 获取轮播图
// export const getBanner = (params) => get("​/system/slideshow/list", params);
export const getBanner = (params) => get("/applet/api/slideshowList", params);
// 经典案例列表
// export const caseList = (params) => get("​/system/case/list", params);
export const caseList = (params) => get("/applet/api/ngClassicCaseList", params);
// 经典案例详情
export const caseDetail = (params) => get(`/system/case/${params.tenantId}`);
// 获取企业详情
// export const getCompanyInfo = (params) => get(`/system/service/getCompanyInfo`);
export const getCompanyInfo = (params) => get(`/applet/api/getCompanyInfo`);
// 首页服务体系 
// export const getServiceData = (params) => get(`/system/service/getServiceData`);
export const getServiceData = (params) => get(`/applet/api/getServiceData`);
// 服务体系列表
export const serviceList = (params) => get(`/system/service/list`, params);
// 服务体系详情
export const serviceDetail = (params) => get(`/system/service/${params.id}`);
// 数据字典
export const getDictData = (params) => get(`/applet/api/getDictData/${params.dataType}`, params);
// 查询报价
export const inquiry = (params) => post("/system/inquiry", params);
// 查询报价列表
export const inquiryList = (params) => get("/system/inquiry/list", params);
// 联系我们
// export const contactUs = (params) => get("/system/contactUs/list", params);
export const contactUs = (params) => get("/applet/api/ngContactUsList", params);